package s11n;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class HelloWorldDeserialize {

	public static void main(String[] args) throws IOException, ClassNotFoundException {
		FileInputStream fis = new FileInputStream("temp");
		ObjectInputStream ois = new ObjectInputStream(fis);
		SimplePojo pojo = (SimplePojo) ois.readObject();
		System.out.println("POJO Version: " + pojo.version);
	}

}
